package com.example.item;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "动态")
public class Dynamic {
    @Schema(description = "动态编号")
    @TableId(type = IdType.AUTO)
    private Integer dynamicId;
    @Schema(description = "动态标题")
    private String dynamicName;
    @Schema(description = "动态作者")
    private String dynamicAuthor;
    @Schema(description = "动态内容")
    private String dynamicContent;
    @Schema(description = "地区代码")
    private Integer dynamicAreaid;
    @Schema(description = "点赞数量")
    private Integer dynamicLike;
    @Schema(description = "评论数量")
    private Integer dynamicComment;
    @Schema(description = "收藏数量")
    private Integer dynamicStar;
    @Schema(description = "动态状态（0：正常，1：停用）")
    private Integer dynamicStatus;
    @Schema(description = "是否公开（是:1，否:0）")
    private Integer dynamicAvailable;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "修改时间")
    private Date updateTime;
    @Schema(description = "是否删除（是:1，否:0）")
    @TableLogic(value = "0", delval = "1")
    private Integer dynamicIsdelete;
}
